public class Main {
    public static void main(String[] args) {
        Animals a = new Animals() {
            @Override
            public void run() {
                System.out.println("动物跑");
            }
        };
    }
}

abstract class Animals{
    public abstract void run();
}
